<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center introductionTemple_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub introductionTemple_fd0_0'>
          <view class='flex flex-wrap align-center introductionTemple_fd0_0_c0' @tap.stop="handleJumpDiy"
            data-type="back" data-url="1">
            <text class='fu-iconfont2  introductionTemple_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='introductionTemple_fd0_0_c1_c0'>{{title}}</text>
          </view>
          <view class='flex flex-wrap align-center justify-end introductionTemple_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout introductionTemple_flex_1">
        <template v-for='(item,key0) in dataList'>
          <view class='flex flex-wrap align-stretch introductionTemple_fd1_0' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/shouye/detailsPage/detailsPage?id=${item.aid}`" :key='key0'>
            <image class='introductionTemple_fd1_0_c0' mode="aspectFit" :src='item.img'></image>
            <view class='flex flex-direction flex-wrap align-stretch justify-between'>
              <text class='introductionTemple_fd1_0_c1_c0'>{{item.title}}</text>
              <view class='flex flex-wrap align-center'>
                <text class='introductionTemple_fd1_0_c1_c1_c0'>{{$t('地点')}}：</text>
                <text class='introductionTemple_fd1_0_c1_c1_c1'>{{item.address}}</text>
              </view>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->
      <view class="flex flex-wrap align-center justify-between benben-position-layout flex introductionTemple_flex_2">
        <button class='introductionTemple_fd2_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
          :data-url="`/pages/shouye/templeHistory/templeHistory`">{{$t('关于灵岩')}}</button>
        <button class='introductionTemple_fd2_1' @tap.stop="handleJumpDiy" data-type="navigateTo"
          :data-url="`/pages/shouye/templePreview/templePreview`">{{$t('寺院巡礼')}}</button>

      </view>
      <view :style="{height: '140rpx'}"></view>


    </view>
  </view>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "dataList": [],
        title: ''
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.title = options.name
      this.getDatalistFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取列表
      getDatalistFunc() {
        this.minixPagingListsApi = global.apiUrls.post65601d56ce781;
        this.pageingListApiMethod = 'get';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          type: 2
        }
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();

      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(247, 243, 237, 1);
    background-size: 100% auto;
  }

  .introductionTemple_flex_0 {
    border-bottom: 1px solid rgba(238, 238, 238, 1);
    background: rgba(247, 243, 237, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .introductionTemple_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .introductionTemple_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .introductionTemple_fd0_0_c0 {
    width: 120rpx;
  }

  .introductionTemple_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .introductionTemple_flex_1 {
    padding: 32rpx 32rpx 0rpx 32rpx;
  }

  .introductionTemple_fd1_0_c1_c1_c1 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 36rpx;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    width: 160px;
  }

  .introductionTemple_fd1_0_c1_c1_c0 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 36rpx;
  }

  .introductionTemple_fd1_0_c1_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 42rpx;
    width: 396rpx;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .introductionTemple_fd1_0_c0 {
    width: 200rpx;
    height: 200rpx;
    border-radius: 24rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .introductionTemple_fd1_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 40rpx;
    background-size: 100% auto;
    padding: 32rpx 24rpx 32rpx 24rpx;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }

  .introductionTemple_flex_2 {
    background: rgba(235, 228, 217, 1);
    width: 750rpx;
    height: 140rpx;
    overflow: hidden;
    z-index: 10;
    bottom: calc(0rpx + var(--window-bottom));
    background-size: 100% auto;
  }

  .introductionTemple_fd2_1 {
    background: rgba(145, 47, 34, 1);
    border-radius: 44rpx;
    width: 332rpx;
    line-height: 80rpx;
    font-size: 32rpx;
    color: #fff;
    margin: 0rpx 32rpx 0rpx 0rpx;
  }

  .introductionTemple_fd2_0 {
    background: rgba(152, 112, 64, 1);
    border-radius: 44rpx;
    width: 332rpx;
    line-height: 80rpx;
    font-size: 32rpx;
    color: #fff;
    margin: 0rpx 0rpx 0rpx 32rpx;
  }
</style>
